﻿@inherits FoodNodeBase

<ul class="s-food s-food-time ms-3" @ref="FoodTimeElement">
    @foreach (var time in Items)
    {
        <li class="food-item">
            <div class="food-header" @onclick="() => Toggle(IndexOf(time), time)">
                <i class="@GetCaretClassString(time)"></i>
                <span class="food-text">@time.Name</span>
            </div>
            <FoodMenus Items="time.Foods" />
        </li>
    }
</ul>

